import { ref } from 'vue'
const tableColumn = ref([
  { type: "seq", width: 60, title: "序号" },
  { field: "task", title: "任务" },
  { field: "province", title: "省份" },
  { field: "quantity", title: "数量" },
  { field: "integral", title: "获得积分"},
])

const paginationParams = ref({
  total: 12,
  pageNum: 1,
  pageSize: 10,
})


const orderSelect = [
  { 
    label: '代理商',
    model: 'agencyId',
    placeholder: '请选择',
    url: 'base/agency/list',
    prop: 'agencyId',
    required: true,
    electFun: true,
    type: 'select',
    selectData: []
  },
  { 
    label: '年度',
    model: 'year',
    placeholder: '请选择',
    prop: 'year',
    dict: 'set_year_times',
    required: true,
    type: 'select',
    electFun: true,
    selectData: []
  },
  { 
    label: '月度',
    model: 'month',
    placeholder: '请选择',
    prop: 'month',
    required: true,
    dict: 'set_month_times',
    type: 'select',
    electFun: true,
    selectData: []
  },
  {
    label: '发布时间',
    model: 'sendTime',
    required: false,
    disabled: true,
    endModel: 'endModel',
    placeholder: '请输入',
    message: '请选择时间',
    timeType: 'datetime', //datetimerange(带时分秒)
    setTime: 'setTime',
    type: 'beginTime',
  },
  {
    label: '本月获得积分',
    model: 'integral',
    required: false,
    disabled: true,
    placeholder: '请输入',
    type: 'input'
  },
  {
    label: '调整后的积分',
    model: 'adjustedAmount',
    required: false,
    disabled: true,
    placeholder: '请输入',
    type: 'input'
  },
]
export default { tableColumn, paginationParams, orderSelect }

